HTML Style Guide |
||||||||
|
||||||||
Frames are a controversial part of the Web, some people like 'em and too many hate 'em. As you surf you'll see notes on pages that proudly proclaim "This site is Frame-Free!" and similar. Personally I think Frames are good - when used intelligently. In this section I'll try to relate my own feelings about Frames and hopefully help you decide where and how best to use them. To learn how to create and use Frames in WebExpress, click here.
Use Frames Or Not?
The important thing here is that sites that use Frames need to be well planned. Care should be taken to ensure that visitors with various browsers, using various system settings, can still view your site and not be insulted by it! Links To Other Sites From A Frame Page:
What bothers people even more is that when one site is displayed within another site's Frame, they can't access the URL of the inner site in order to bookmark it or write it down. Solving this problem is quite easy, however: when you add a hyperlink to a site outside of your own, be sure to use the HTML "TARGET" modifier within your hyperlink directive. For example, if the directive...
...is issued from a Frame, that hyperlink will cause the new site will be loaded into the current site's existing Frame. That's because the TARGET modifier is used to indicate into which Frame a page should be loaded, if any. Since no modifier was used in the above hyperlink, the default value for TARGET is "SELF", which means load it into the current Frame, if any. To make sure that a page is loaded into a fresh browser window, just add the TARGET modifier to the hyperlink with a value of "_TOP" - as shown below:
This will 'tell' the browser how to display the new site. Many editors (WebExpress, for instance) make this very simple by providing a TARGET option that you select when you add the hyperlink. If you use Frames, be kind to your visitors and be sure outside links really go outside! Frames That Contain Menus:
Frame Dos & Don'ts To Consider:
|